package top.jolyoulu.business.web.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.jolyoulu.modules.apiversionmodule.apiverion.ApiVersion;
import top.jolyoulu.webcommon.entity.ResultInfo;

/**
 * @Author LuZhouJin
 * @Date 2023/5/4
 * apiversion-module 测试
 */
@RestController
@RequestMapping("/test/apiVersion")
public class TestApiVersionController {

    //测试接口版本功能
    @GetMapping("/test")
    public ResultInfo<String> test(){
        return ResultInfo.success("v1.0.0");
    }

    @ApiVersion("1.1.0")
    @GetMapping("/test")
    public ResultInfo<String> test1_1_0(){
        return ResultInfo.success("v1.1.0");
    }

    @ApiVersion("1.2.0")
    @GetMapping("/test")
    public ResultInfo<String> test1_2_0(){
        return ResultInfo.success("v1.2.0");
    }
}
